package com.lqs.sofp.servlet;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
/**
 * @author lkh
 */
@WebServlet(name = "LinktoBackStageServlet", value = "/html/backstage")
public class LinktoBackStageServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        //将页面定向到后台主页。
        response.sendRedirect(request.getContextPath() + "/html/communityBackstage.html");
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doGet(request, response);
    }
}
